//
//  OtherPlaying.m
//  Cup
//
//  Created by dllo on 15/4/24.
//  Copyright (c) 2015年 doll. All rights reserved.
//

#import "OtherPlaying.h"

@implementation OtherPlaying
+ (instancetype)shareOtherPlaying
{
    static OtherPlaying *otherPlaying = nil;
    static dispatch_once_t oneToTake;
    dispatch_once(&oneToTake,^{
        otherPlaying = [[OtherPlaying alloc]init];
    });
    return otherPlaying;
}

- (void)createPlay:(NSURL *)currentURL
{
    self.playerItem = [AVPlayerItem playerItemWithURL:currentURL];
    self.player = [AVPlayer playerWithPlayerItem:self.playerItem];
}
@end
